package com.learning.java.optimize.design.pattern.strategy;

/**
 * ClassName: DiscountStrategy
 * Description: 折扣策略
 * Date: 2020/3/22 17:20 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public interface DiscountStrategy {

    /**
     * 会员类型
     *
     * @param type
     * @return
     */
    boolean supportType(String type);


    /**
     * 折扣计算
     *
     * @param fee
     * @return
     */
    double discount(double fee);


    String type();
}
